package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("room_info")
public class RoomDao{
	@Name
	private String roomNo;		// 房间编号
	@Column
	private int status;			// 房间状态
	@Column
	private String phoneNum;	// 房间电话
	@Column
	private String position;	// 房间位置
	@Column
	private int principal;		// 负责员工
	@Column("Type")
	private int typeId;			// 房间类型编号
	
	@One(target=RoomTypeDao.class, field="typeId")
	private RoomTypeDao roomType; // 一对一对象
	
	public String getRoomNo() {
		return roomNo;
	}

	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public int getPrincipal() {
		return principal;
	}

	public void setPrincipal(int principal) {
		this.principal = principal;
	}

	public int getTypeId() {
		return typeId;
	}

	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}

	public RoomTypeDao getRoomType() {
		return roomType;
	}

	public void setRoomType(RoomTypeDao roomType) {
		this.roomType = roomType;
	}
}